import numpy as np 
from matplotlib import pyplot as plt 
 
x = np.loadtxt('highpasstestdata.txt'); #最普通的loadtxt

y=np.convolve(x,[-1,1],'same')
y1=np.convolve(x,[-1,1],'valid')
#y=np.sin(x/16*2*np.pi);
# plt.plot(x,y) 
plt.plot(x) 
plt.plot(y)
plt.plot(y1)


print(y)
print(y1)
plt.show()
